package com.surveillance.BO;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.surveillance.DAO.AffectationEtudiantsDetailDao;
import com.surveillance.entities.AffectationEtudiantsDetail;

@Service("AffectationEtudiantsDetailBo")
public class AffectationEtudiantsDetailBo implements
		BOLayer<AffectationEtudiantsDetail> {

	@Autowired
	AffectationEtudiantsDetailDao affectationEtudiantsDetailDao;

	public void setAffectationEtudiantsDetailDao(
			AffectationEtudiantsDetailDao affectationEtudiantsDetailDao) {
		this.affectationEtudiantsDetailDao = affectationEtudiantsDetailDao;
	}

	@Override
	public boolean save(AffectationEtudiantsDetail myEntity) {
		// TODO Auto-generated method stub
		affectationEtudiantsDetailDao.save(myEntity);
		return true;
	}

	@Override
	public void update(AffectationEtudiantsDetail myEntity) {
		// TODO Auto-generated method stub
		affectationEtudiantsDetailDao.update(myEntity);
	}

	@Override
	public void delete(AffectationEtudiantsDetail myEntity) {
		// TODO Auto-generated method stub
		affectationEtudiantsDetailDao.delete(myEntity);
	}

	@Override
	public AffectationEtudiantsDetail findByID(Long myEntityID) {
		// TODO Auto-generated method stub
		return affectationEtudiantsDetailDao.findByID(myEntityID);
	}

	@Override
	public List<AffectationEtudiantsDetail> findAll() {
		// TODO Auto-generated method stub
		return affectationEtudiantsDetailDao.findAll();
	}

}
